package com.sdcqjy.property.mode;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 磁磁帅 on 2018/7/4.
 * 功能：
 */

public class LawRegulationsMode {
    /**
     * id : 443
     * title : 第四部分 无偿划转
     * parentID : 0
     */

    public long id;
    public String title;
    public long parentID;
    public long lawID;
    private List<LawRegulationsMode> modeList;
    public transient boolean toDetails;
    public transient boolean isSelect;
    public transient boolean isOpen;

    public List<LawRegulationsMode> getModeList() {
        if (modeList == null) modeList = new ArrayList<>();
        return modeList;
    }

    public void setModeList(List<LawRegulationsMode> list) {
        if (modeList == null) modeList = new ArrayList<>();
        if (list == null) list = new ArrayList<>();
        modeList.clear();
        modeList.addAll(list);
    }
}
